package com.yy.service;

import com.yy.mapper.DptMapper;
import com.yy.pojo.Dpt;
import com.yy.pojo.Meet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: yy
 * @Date 2021/11/9 17:14
 */
@Component
@Service
public class DptService {
    @Resource
    @Autowired
    private DptMapper dptMapper;

    public List<Dpt> getDptList() {
        return dptMapper.getDptList();
    }

    public int addDpt(Dpt dpt) {
        return dptMapper.addDpt(dpt);

    }


//    public Dpt deleteDpt(String dptId) {
//        return dptMapper.deleteDpt(dptId);
//    }

    public int deleteDpt(String dptId) {
        return dptMapper.deleteDpt(dptId);
    }
}
